#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	int max = a > b ? a : b;
	int min = b > a ? a : b;
	if (max % min == 0)
	{
		cout << max;
		return 0;
	}
	int i = 2;
	while (i++) {
		if ((min * i) % max == 0)
		{
			cout << min * i << endl;
			return 0;
		}
	}
}
